<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvEmpid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvBatchid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvDatasource"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvDosekind"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <select name="dvDosetype">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvValue"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvHasdeclare"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvKzcdoseid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvKzcempid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" class="time-input" placeholder="请选择${comment}" name="dvStartdate"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" class="time-input" placeholder="请选择${comment}" name="dvEnddate"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvReaderid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvZoneid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvDosemeter"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvTaskid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" class="time-input" placeholder="请选择${comment}" name="dvReconst"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvIscompensate"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvDesc"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvCardnum"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvRwpid"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvContaminated"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvContaminatedDesc"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvDosealarmed"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvDosethreshold"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvRatealarmed"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvRatethreshold"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvMaxrate"/>
                            </li>
                            <li>
                                <label>${comment}：</label>
                                <input type="text" name="dvAnomaly"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:value:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:value:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:value:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:value:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:value:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:value:remove')}]];
        var prefix = ctx + "system/value";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "【请填写功能名称】",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'ID',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'dvId',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'dvEmpid',
                    title: '主键'
                },
                {
                    field: 'dvBatchid',
                    title: '主键'
                },
                {
                    field: 'dvDatasource',
                    title: '主键'
                },
                {
                    field: 'dvDosekind',
                    title: '主键'
                },
                {
                    field: 'dvDosetype',
                    title: '主键'
                },
                {
                    field: 'dvValue',
                    title: '主键'
                },
                {
                    field: 'dvHasdeclare',
                    title: '主键'
                },
                {
                    field: 'dvKzcdoseid',
                    title: '主键'
                },
                {
                    field: 'dvKzcempid',
                    title: '主键'
                },
                {
                    field: 'dvStartdate',
                    title: '主键'
                },
                {
                    field: 'dvEnddate',
                    title: '主键'
                },
                {
                    field: 'dvReaderid',
                    title: '主键'
                },
                {
                    field: 'dvZoneid',
                    title: '主键'
                },
                {
                    field: 'dvDosemeter',
                    title: '主键'
                },
                {
                    field: 'dvTaskid',
                    title: '主键'
                },
                {
                    field: 'dvReconst',
                    title: '主键'
                },
                {
                    field: 'dvIscompensate',
                    title: '主键'
                },
                {
                    field: 'dvDesc',
                    title: '主键'
                },
                {
                    field: 'dvCardnum',
                    title: '主键'
                },
                {
                    field: 'dvRwpid',
                    title: '主键'
                },
                {
                    field: 'dvContaminated',
                    title: '主键'
                },
                {
                    field: 'dvContaminatedDesc',
                    title: '主键'
                },
                {
                    field: 'dvDosealarmed',
                    title: '主键'
                },
                {
                    field: 'dvDosethreshold',
                    title: '主键'
                },
                {
                    field: 'dvRatealarmed',
                    title: '主键'
                },
                {
                    field: 'dvRatethreshold',
                    title: '主键'
                },
                {
                    field: 'dvMaxrate',
                    title: '主键'
                },
                {
                    field: 'dvAnomaly',
                    title: '主键'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.ID + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.ID + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>